package com.im.service.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * im-群组
 * </p>
 *
 * @author 刘志强
 * @since 2024-07-05
 */
@Getter
@Setter
@TableName("im_group")
@ApiModel(value = "ImGroup对象", description = "im-群组")
public class ImGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("群主")
    private Long userId;

    @ApiModelProperty("群组名称")
    private String groupName;

    @ApiModelProperty("群头像")
    private String avatar;

    @ApiModelProperty("群公告")
    private String groupNotice;

    @ApiModelProperty("删除标志 0 未删除 1 删除")
    @TableLogic
    private Integer delFlag;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdDate;

    @ApiModelProperty("创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateDate;

    @ApiModelProperty("修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;
}
